/**
* Copyright (c) By zengqh.
*
* This program is just for fun or demo, in the hope that it  
* will be useful, you can redistribute it and/or modify freely.
*
* Time: 2013/03/04
* File: GLMapping.cpp
**/

#include "GLMapping.h"

namespace HY
{
uint32 PixelFormatMappping[PixelFormat::Number] = 
{
	GL_R8,
	GL_RGB8,
	GL_RGBA8,
	GL_R16,
	GL_RG16,
	GL_RGBA16,
	GL_DEPTH_COMPONENT16,
	GL_DEPTH_COMPONENT24,
	GL_DEPTH_COMPONENT32,
	GL_COMPRESSED_RGB_S3TC_DXT1_EXT,
	GL_COMPRESSED_RGBA_S3TC_DXT3_EXT,
	GL_COMPRESSED_RGBA_S3TC_DXT5_EXT,
	GL_R16F,
	GL_RG16F,
	GL_RGBA16F,
	GL_R32F,
	GL_RG32F,
	GL_RGBA32F
};

uint32 FillModeMapping[Fill::Number] =
{
	GL_POINT,
	GL_LINE,
	GL_FILL
};

uint32 CullModeMapping[Cull::Number] =
{
	0,
	GL_CW,
	GL_CCW
};

uint32 PrimModeMapping[Primitive::Number] =
{
	GL_POINTS,
	GL_LINES,
	GL_TRIANGLES
};

uint32 SamplerAddrMapping[SamplerAddressMode::Number] =
{
	GL_REPEAT,
	GL_CLAMP_TO_EDGE
};

}